package com.free.mini.core.serve.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.free.mini.core.serve.entity.AdminUser;
import com.free.mini.core.server.vo.req.AdminUserLoginReqVO;
import com.free.mini.core.server.vo.req.AdminUserQueryDetailReqVO;
import com.free.mini.core.server.vo.req.AdminUserRegisterReqVO;
import com.free.mini.core.server.vo.resp.AdminUserLoginRespVO;
import com.free.mini.core.server.vo.resp.AdminUserQueryDetailRespVO;

/**
 * @author dongsufeng
 * @version 4.0
 * @date 2023/8/1 15:34
 */
public interface IAdminUserService  extends IService<AdminUser> {

    /**
     * 注册
     * @param reqVO req
     * @return true
     */
    Boolean register(AdminUserRegisterReqVO reqVO);

    /**
     * 登录
     * @param reqVO req
     * @return token
     */
    AdminUserLoginRespVO login(AdminUserLoginReqVO reqVO);

    /**
     * 按用户名查询
     * @param user 用户名
     * @return 详情
     */
    AdminUserQueryDetailRespVO detail(AdminUserQueryDetailReqVO reqVO);

}
